package com.zzy.demo.config;

import javax.servlet.annotation.WebListener;
import javax.servlet.http.HttpSessionAttributeListener;
import javax.servlet.http.HttpSessionBindingEvent;

/**
 * 
 * @author guokaige
 *
 */
@WebListener
public class SessionAttributeListener implements HttpSessionAttributeListener {

	@Override
	public void attributeAdded(HttpSessionBindingEvent se) {
		System.out.println(se.getName()+"________"+se.getValue());
	}

	@Override
	public void attributeRemoved(HttpSessionBindingEvent se) {
		System.out.println(se.getName()+"________"+se.getValue());
	
	}

	@Override
	public void attributeReplaced(HttpSessionBindingEvent se) {
		System.out.println(se.getName()+"________"+se.getValue());
	}

}
